/**
 * Created by 寂尘 on 2016/7/20.
 */
angular.module('app.filter', [])
    /*人才招聘薪资过滤*/
    .filter('jobother', function () {
        return function (jobothernum) {
            if (jobothernum == 0) return "面议";
            else return jobothernum;
        }
    })
    /*店铺租金过滤*/
    .filter('rent', function () {
        return function (rentnum) {
            if (rentnum == 0) return "面议";
            else return rentnum;
        }
    })
    /*设备新旧过滤*/
    .filter('recencyft', function () {
        return function (recencyftnum) {
            if (recencyftnum == 1) return "较新";
            else if (recencyftnum == 2) return "旧";
            else if (recencyftnum == 3) return "很旧";
            else return recencyftnum;
        }
    })
    /*设备金额过滤*/
    .filter('amountft', function () {
        return function (amountftnum) {
            if (amountftnum == 0) return "面议";
            else return amountftnum;
        }
    })
    .filter('userSex', function () {
        return function (userSexnum) {
            if (userSexnum == 1) return "先生";
            else if (userSexnum == 2) return "女士";
            else return "未知性别";
        }
    })
;